package main

import (
	"fmt"
	"net/http"

	"echox/router"

	"github.com/labstack/echo/v4"
)

func main() {
	e := echo.New()

	e.GET("/", func(c echo.Context) error {
		return c.String(http.StatusOK, "Hello, World!")
	})
	g := e.Group("")
	for _, iRouter := range router.InitRouterx() {
		iRouter.InitRoute(g)
	}
	for _, route := range e.Routes() {
		fmt.Println(route.Method, route.Path)
	}
	e.Logger.Fatal(e.Start(":8080"))
	//e.StartH2CServer("", &http2.Server{})
}
